package cn.ex;

import java.util.Scanner;

public class Ex5 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入字符串：");
        String t = sc.nextLine();
        if (t.matches("[\u4e00-\u9fa5]+")) {
            System.out.println("中文：" + t);
        } else if (t.matches("[a-zA-Z]+")) {
            System.out.println("En：" + t);
        } else if (t.matches("[0-9]+")) {
            System.out.println("数字：" + t);
        } else {
            System.out.println("其它：" + t);
        }
    }
}
